'''
    8.3.大乐透案例
生成一个大乐透彩票投注
大乐透号码分为红区和蓝区
红区5个数字01-35 不重复
蓝区2个数字01-08 不重复

'''
import random

red = []
blue = []


while len(red)<5:
    r = random.randint(1, 35)
    if r in red :
        continue
    else:
        red.append(r)

while len(blue)<2:
    b=random.randint(1,8)
    if b in blue :
        continue
    else:
        blue.append(b)

print(red,blue)